package com.inossem.utils.chart;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by leij on 2018/1/8.
 */

public class ChartBean {

//    {
//        "leftAxisMaxValue":"200",
//            "rightAxisMaxValue":"100",
//            "leftAxisUnit":"笔",
//            "rightAxisUnit":"%",
//            "title":"表格标题",
//            "chartInfoList":[
//        {
//            "name":"入库",
//                "type":"0",
//                "dependence":"0"
//        },
//        {
//            "name":"出库",
//                "type":"0",
//                "dependence":"0"
//        },
//        {
//            "name":"操作数",
//                "type":"1",
//                "dependence":"0"
//        },
//        {
//            "name":"使用率",
//                "type":"1",
//                "dependence":"1"
//        }
//    ],
//        "xAxisList":[
//        {
//            "xAxisName":"张三",
//                "yAxisValueList":[
//            {
//                "yAxisValue":"3"
//            },
//            {
//                "yAxisValue":"5"
//            },
//            {
//                "yAxisValue":"8"
//            },
//            {
//                "yAxisValue":"80"
//            }
//            ]
//        },
//        {
//            "xAxisName":"李四",
//                "yAxisValueList":[
//            {
//                "yAxisValue":"5"
//            },
//            {
//                "yAxisValue":"8"
//            },
//            {
//                "yAxisValue":"13"
//            },
//            {
//                "yAxisValue":"50"
//            }
//            ]
//        }
//    ],
//        "xLimitLine":[
//        {
//            "title":"分割线",
//                "index":"1"
//        }
//    ],
//        "yLimitLine":[
//        {
//            "title":"分割线",
//                "yAxisValue":"60",
//                "dependence":"0"
//        }
//    ]
//    }

    /**
     * leftAxisMaxValue : 200
     * rightAxisMaxValue : 100
     * leftAxisUnit : 笔
     * rightAxisUnit : %
     * title : 表格标题
     * chartInfoList : [{"name":"入库","type":"0","dependence":"0"},{"name":"出库","type":"0","dependence":"0"},{"name":"操作数","type":"1","dependence":"0"},{"name":"使用率","type":"1","dependence":"1"}]
     * xAxisList : [{"xAxisName":"张三","yAxisValueList":[{"yAxisValue":"3"},{"yAxisValue":"5"},{"yAxisValue":"8"},{"yAxisValue":"80"}]},{"xAxisName":"李四","yAxisValueList":[{"yAxisValue":"5"},{"yAxisValue":"8"},{"yAxisValue":"13"},{"yAxisValue":"50"}]}]
     * xLimitLine : [{"title":"分割线","index":"1"}]
     * yLimitLine : [{"title":"分割线","yAxisValue":"60","dependence":"0"}]
     */

    private String left_axis_max_value;
    private String right_axis_max_value;
    private String left_axis_unit;
    private String right_axis_unit;
    private String title;
    private List<ChartInfoListBean> chart_info_list;
    private List<XAxisListBean> x_axis_list;
    private List<XLimitLineBean> x_limit_line;
    private List<YLimitLineBean> y_limit_line;

    public ChartBean() {
        this.left_axis_max_value = "";
        this.right_axis_max_value = "";
        this.left_axis_unit = "";
        this.right_axis_unit = "";
        this.title = "";
        this.chart_info_list = new ArrayList<>();
        this.x_axis_list = new ArrayList<>();
        this.x_limit_line = new ArrayList<>();
        this.y_limit_line = new ArrayList<>();
    }

    public String getLeft_axis_max_value() {
        return left_axis_max_value;
    }

    public void setLeft_axis_max_value(String left_axis_max_value) {
        this.left_axis_max_value = left_axis_max_value;
    }

    public String getRight_axis_max_value() {
        return right_axis_max_value;
    }

    public void setRight_axis_max_value(String right_axis_max_value) {
        this.right_axis_max_value = right_axis_max_value;
    }

    public String getLeft_axis_unit() {
        return left_axis_unit;
    }

    public void setLeft_axis_unit(String left_axis_unit) {
        this.left_axis_unit = left_axis_unit;
    }

    public String getRight_axis_unit() {
        return right_axis_unit;
    }

    public void setRight_axis_unit(String right_axis_unit) {
        this.right_axis_unit = right_axis_unit;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<ChartInfoListBean> getChart_info_list() {
        return chart_info_list;
    }

    public void setChart_info_list(List<ChartInfoListBean> chart_info_list) {
        this.chart_info_list = chart_info_list;
    }

    public List<XAxisListBean> getX_axis_list() {
        return x_axis_list;
    }

    public void setX_axis_list(List<XAxisListBean> x_axis_list) {
        this.x_axis_list = x_axis_list;
    }

    public List<XLimitLineBean> getX_limit_line() {
        return x_limit_line;
    }

    public void setX_limit_line(List<XLimitLineBean> x_limit_line) {
        this.x_limit_line = x_limit_line;
    }

    public List<YLimitLineBean> getY_limit_line() {
        return y_limit_line;
    }

    public void setY_limit_line(List<YLimitLineBean> y_limit_line) {
        this.y_limit_line = y_limit_line;
    }

    public static class ChartInfoListBean {
        /**
         * name : 入库
         * type : 0
         * dependence : 0
         */

        private String name;
        private String type;
        private String dependence;
        private Integer index;

        public ChartInfoListBean() {
            this.name = "";
            this.type = "";
            this.dependence = "";
            this.index = null;
        }

        public Integer getIndex() {
            return index;
        }

        public void setIndex(Integer index) {
            this.index = index;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getDependence() {
            return dependence;
        }

        public void setDependence(String dependence) {
            this.dependence = dependence;
        }
    }

    public static class XAxisListBean {
        /**
         * xAxisName : 张三
         * yAxisValueList : [{"yAxisValue":"3"},{"yAxisValue":"5"},{"yAxisValue":"8"},{"yAxisValue":"80"}]
         */

        private String x_axis_name;
        private List<YAxisValueListBean> y_axis_value_list;

        public XAxisListBean() {
            this.x_axis_name = "";
            this.y_axis_value_list = new ArrayList<>();
        }

        public String getXAxisName() {
            return x_axis_name;
        }

        public void setXAxisName(String xAxisName) {
            this.x_axis_name = xAxisName;
        }

        public List<YAxisValueListBean> getYAxisValueList() {
            return y_axis_value_list;
        }

        public void setYAxisValueList(List<YAxisValueListBean> yAxisValueList) {
            this.y_axis_value_list = yAxisValueList;
        }

        public static class YAxisValueListBean {
            /**
             * yAxisValue : 3
             */

            private String y_axis_value;
            private String primary_key;

            public String getPrimary_key() {
                return primary_key;
            }

            public void setPrimary_key(String primary_key) {
                this.primary_key = primary_key;
            }

            public String getY_axis_value() {
                return y_axis_value;
            }

            public void setY_axis_value(String y_axis_value) {
                this.y_axis_value = y_axis_value;
            }


            public String getYAxisValue() {
                return y_axis_value;
            }

            public void setYAxisValue(String yAxisValue) {
                this.y_axis_value = yAxisValue;
            }
        }
    }

    public static class XLimitLineBean {
        /**
         * title : 分割线
         * index : 1
         */

        private String title;
        private String index;

        public XLimitLineBean() {
            this.title = "";
            this.index = "";
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getIndex() {
            return index;
        }

        public void setIndex(String index) {
            this.index = index;
        }
    }

    public static class YLimitLineBean {
        /**
         * title : 分割线
         * yAxisValue : 60
         * dependence : 0
         */

        private String title;
        private String y_axis_value;
        private String dependence;

        public YLimitLineBean() {
            this.title = "";
            this.y_axis_value = "";
            this.dependence = "";
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getYAxisValue() {
            return y_axis_value;
        }

        public void setYAxisValue(String yAxisValue) {
            this.y_axis_value = yAxisValue;
        }

        public String getDependence() {
            return dependence;
        }

        public void setDependence(String dependence) {
            this.dependence = dependence;
        }
    }
}
